package com.zhima;

import com.zhima.annotation.*;
import com.zhima.feignclient.QuestionFeignClient;
import com.zhima.feignclient.UserFeignClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author : Administer
 * @date : 2023-11-20 14:51
 **/
@SpringBootApplication
@EnableSecurity
// 题目所有人都可以查看
// 但是修改、增加题目必须登录
// 所以如果转换token失败也得放行，这里要配置true
@EnableParseToken
@EnableCheckLogin
@EnablePagination
@EnableKnife4j(title = "芝麻OJ题目服务-API文档", description = "芝麻OJ题目服务")
@EnableFeignClients(clients = {UserFeignClient.class, QuestionFeignClient.class})
public class ContestApplication {
    public static void main(String[] args) {
        SpringApplication.run(ContestApplication.class, args);
    }
}
